package com.sk.compiler.info;

public class NameInfo {

    private String packageName;
    private String className;
    private String newClassName;

    public NameInfo(String key, String extendName) {
        int index = key.lastIndexOf('.');
        packageName = key.substring(0, index);
        className = key.substring(index + 1);
        newClassName = className + extendName;
    }

    public String getPackageName() {
        return packageName;
    }

    public String getClassName() {
        return className;
    }

    public String getNewClassName() {
        return newClassName;
    }

    public String getNewFullName(){
        return packageName+"."+newClassName;
    }

}